//
//  AppSettings.h
//  iOSPractice
//
//  Created by hoolai on 2018/11/21.
//  Copyright © 2018年 hoolai. All rights reserved.
//  Update v1.1 by wenyushu on 2018/11/21
//  写了一个类来管理全局常量  不清楚这个方式和使用文件读写(NSDictionary?)哪个好一点
//  好像还有#define的方式 不过对于存储对象来说就麻烦了
//  Update v1.2 by wenyushu on 2018/11/26
//  设计为单例模式用于共享全局变量

#import <UIKit/UIKit.h>


NS_ASSUME_NONNULL_BEGIN

@class MagicBeastsModel;
@interface AppSettings : NSObject
@property (nonatomic, strong)  MagicBeastsModel * _Nullable myBeast;
@property (nonatomic, assign) NSInteger level;

+ (AppSettings *) shareSettings;
+ (int)skipButtonTag;
+ (UIColor *)myTextColor;
+ (NSURL *)loadingMusicURL;
+ (UIColor *)selectedCellColor;
+ (NSString *)dataFilePath;
+ (NSInteger)maxLevel;
@end

typedef enum _SortType{
    SORT_BY_ID = 0,
    SORT_BY_ATK,
    SORT_BY_DEF,
    SORT_BY_TYPE
}SortType;

typedef enum _ItemType{
    TRAP = 1,
    BARRIER,
    GOAL,
    PLAYER
}ItemType;
NS_ASSUME_NONNULL_END
